//
//  CadeStartAction.m
//  ICrEAM
//
//  Created by mac on 16/11/18.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "CadeOperationAction.h"

@implementation CadeOperationAction
- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPost;
}
// 请求参数
- (id)requestArgument {
    NSMutableDictionary *parm=[NSMutableDictionary dictionary];
    
    [parm setObject:_ro_num forKey:@"RO_NO"];
    if (self.operationType==OperationCancelType) {
            [parm setObject:_breakReason forKey:@"RPR_BREAK_REASON"];
    }
    return parm;
    
}
// 请求URL
- (NSString *)requestUrl {
    switch (self.operationType) {
        case OperationStartType:
            return  OperationStartUrl;
            break;
        case OperationCancelType:
            return  OperationCancelUrl;
            break;
        case OperationRepalyType:
            return  OperationRepalyUrl;
            break;
        case OperationEndType:
            return  OperationEndUrl;
            break;
            
        default:
            return nil;
            break;
    }

}

@end
